#include "Support.h"
#include "StateManager.h"
#include "AboutState.h"
#include "MenuState.h"

void CAboutState::Init()
{

}

void CAboutState::Release()
{

}

void CAboutState::Pause()
{

}

void CAboutState::Resume()
{

}

void CAboutState::Update()
{
	if (GIsKeyPress(KEY_SPACE))
	{
		CStateManager::GetInstance ()->PopState ();
		CStateManager::GetInstance ()->GetListState ().back ()->Resume ();
	}
}

void CAboutState::Draw()
{
	GPutStringToBufferWithMargin("Flow", 6, GColors::LIGHT_CYAN);

	GPutStringToBufferWithMargin("Team Project", 10);
	GPutStringToBufferWithMargin("Member:", 12);
	GPutStringToBufferWithMargin("Rye Nguyen", 14);
	GPutStringToBufferWithMargin("Thanh Tuan", 16);

	GPutStringToBufferWithMargin("Special thanks:", 20);
	GPutStringToBufferWithMargin("Hieu Nguyen", 22);

	GPutStringToBufferWithMargin("If you have any problem", 26);
	GPutStringToBufferWithMargin ("please contact us at", 28);
	GPutStringToBufferWithMargin("ryenguyen7411@gmail.com", 30);

	GPutStringToBufferWithMargin("Press Space to return to Menu", 34, GColors::LIGHT_MAGENTA);
}